from django.newforms import ModelForm, ValidationError
from userprofile.models import UserProfile
from models import *

class ThreadForm(ModelForm):
    class Meta:
        model = Thread
        fields = ('title','body')


class AdminThreadForm(ModelForm):
    class Meta:
        model = Thread
        fields = ('is_sticky','is_closed','is_hidden','is_private')

class CategoryForm(ModelForm):
    class Meta:
        model = Category
        fields = ('name','description')

class AdminCategoryForm(ModelForm):
    class Meta:
        model = Category
        fields = ('is_private','is_closed','is_hidden')


